package publicclass

type User struct {
	Name    string `json:"name"` //标记json名字为name
	Age     int8   `json:"age"`
	Phone   string `json:"phone"`
	Address string `json:"-"` // 标记忽略该字段
	Level   int8   `json:"-"`
}

func (user *User) setPhone(phoneNumber string) {
	user.Phone = phoneNumber
} 
